/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * InserirClienteJInternalFrame.java
 *
 * Created on 22/04/2009, 21:37:12
 */

package br.com.fatecpg.mdioficina;

/**
 *
 * @author Fatec
 */
public class InserirClienteJInternalFrame extends javax.swing.JInternalFrame {

    /** Creates new form InserirClienteJInternalFrame */
    public InserirClienteJInternalFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        TipoClientebuttonGroup = new javax.swing.ButtonGroup();
        PFjRadioButton = new javax.swing.JRadioButton();
        PJjRadioButton = new javax.swing.JRadioButton();
        cardPanel = new javax.swing.JPanel();
        PFjPanel = new javax.swing.JPanel();
        NomePFjLabel = new javax.swing.JLabel();
        NomePFjTextField = new javax.swing.JTextField();
        CPFjLabel = new javax.swing.JLabel();
        CPFjTextField = new javax.swing.JTextField();
        Telefone1PFjLabel = new javax.swing.JLabel();
        Telefone1PFjFormattedTextField = new javax.swing.JFormattedTextField();
        Telefone2PFjLabel = new javax.swing.JLabel();
        Telefone2PFjFormattedTextField = new javax.swing.JFormattedTextField();
        CelularPFjLabel = new javax.swing.JLabel();
        CelularPFjFormattedTextField = new javax.swing.JFormattedTextField();
        EmailPFjLabel = new javax.swing.JLabel();
        EmailPFjTextField = new javax.swing.JTextField();
        EndereçoPFjLabel = new javax.swing.JLabel();
        EndereçoPFjTextField = new javax.swing.JTextField();
        CidadePFjLabel = new javax.swing.JLabel();
        CidadePFjTextField = new javax.swing.JTextField();
        UFPFjLabel = new javax.swing.JLabel();
        UFPFjComboBox = new javax.swing.JComboBox();
        PJjPanel = new javax.swing.JPanel();
        NomePJjLabel = new javax.swing.JLabel();
        NomePJjTextField = new javax.swing.JTextField();
        CNPJjLabel = new javax.swing.JLabel();
        CNPJjFormattedTextField = new javax.swing.JFormattedTextField();
        RazãoSocialjLabel = new javax.swing.JLabel();
        RazãoSocialjTextField = new javax.swing.JTextField();
        InscriçãoEstadualjLabel = new javax.swing.JLabel();
        InscriçãoEstadualjTextField = new javax.swing.JTextField();
        InscriçãoMunicipaljLabel = new javax.swing.JLabel();
        InscriçãoMunicipaljTextField = new javax.swing.JTextField();
        Telefone1PJjLabel = new javax.swing.JLabel();
        Telefone1PJjFormattedTextField5 = new javax.swing.JFormattedTextField();
        ResponsávelTelefone2PJjLabel = new javax.swing.JLabel();
        ResponsávelTelefone1PJjTextField10 = new javax.swing.JTextField();
        Telefone2PJjLabel = new javax.swing.JLabel();
        Telefone2PJjFormattedTextField = new javax.swing.JFormattedTextField();
        ResponsávelTelefone1PJjLabel = new javax.swing.JLabel();
        ResponsávelTelefone1PJjTextField = new javax.swing.JTextField();
        EmailPJjLabel = new javax.swing.JLabel();
        EmailPJjTextField = new javax.swing.JTextField();
        EndereçoPJjLabel = new javax.swing.JLabel();
        EndereçoPJjTextField = new javax.swing.JTextField();
        CidadePJjLabel = new javax.swing.JLabel();
        CidadePJjTextField = new javax.swing.JTextField();
        UFPJjLabel = new javax.swing.JLabel();
        UFPJjComboBox = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setBackground(new java.awt.Color(199, 204, 213));
        setTitle("Cadastro de cliente");
        setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/images/icone_usuario_24x24.png"))); // NOI18N
        setMaximumSize(new java.awt.Dimension(700, 350));
        setPreferredSize(new java.awt.Dimension(600, 400));

        PFjRadioButton.setBackground(new java.awt.Color(199, 204, 213));
        TipoClientebuttonGroup.add(PFjRadioButton);
        PFjRadioButton.setText("PF");
        PFjRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PFjRadioButtonMouseClicked(evt);
            }
        });
        PFjRadioButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                PFjRadioButtonKeyPressed(evt);
            }
        });

        PJjRadioButton.setBackground(new java.awt.Color(199, 204, 213));
        TipoClientebuttonGroup.add(PJjRadioButton);
        PJjRadioButton.setText("PJ");
        PJjRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PJjRadioButtonMouseClicked(evt);
            }
        });
        PJjRadioButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PJjRadioButtonActionPerformed(evt);
            }
        });
        PJjRadioButton.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                PJjRadioButtonKeyPressed(evt);
            }
        });

        cardPanel.setLayout(new java.awt.CardLayout());

        PFjPanel.setBackground(new java.awt.Color(199, 204, 213));

        NomePFjLabel.setText("Nome:");

        NomePFjTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NomePFjTextFieldActionPerformed(evt);
            }
        });

        CPFjLabel.setText("CPF:");

        Telefone1PFjLabel.setText("Tel 1:");

        try {
            Telefone1PFjFormattedTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##) ####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        Telefone2PFjLabel.setText("Tel 2:");

        try {
            Telefone2PFjFormattedTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##) ####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        CelularPFjLabel.setText("Cel:");

        try {
            CelularPFjFormattedTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##) ####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        CelularPFjFormattedTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CelularPFjFormattedTextFieldActionPerformed(evt);
            }
        });

        EmailPFjLabel.setText("Email:");

        EndereçoPFjLabel.setText("Endereço:");

        CidadePFjLabel.setText("Cidade:");

        UFPFjLabel.setText("UF:");

        UFPFjComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SP", "RJ", "MG", "PR" }));
        UFPFjComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UFPFjComboBoxActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PFjPanelLayout = new javax.swing.GroupLayout(PFjPanel);
        PFjPanel.setLayout(PFjPanelLayout);
        PFjPanelLayout.setHorizontalGroup(
            PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PFjPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(NomePFjLabel)
                    .addComponent(Telefone1PFjLabel)
                    .addComponent(EmailPFjLabel)
                    .addComponent(EndereçoPFjLabel)
                    .addComponent(CidadePFjLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PFjPanelLayout.createSequentialGroup()
                        .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(CidadePFjTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)
                            .addComponent(EndereçoPFjTextField)
                            .addComponent(EmailPFjTextField))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(UFPFjLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(UFPFjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(PFjPanelLayout.createSequentialGroup()
                        .addComponent(NomePFjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(CPFjLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(CPFjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(PFjPanelLayout.createSequentialGroup()
                        .addComponent(Telefone1PFjFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Telefone2PFjLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Telefone2PFjFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(CelularPFjLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(CelularPFjFormattedTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGap(811, 811, 811))
        );
        PFjPanelLayout.setVerticalGroup(
            PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PFjPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(NomePFjLabel)
                    .addComponent(NomePFjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(CPFjLabel)
                    .addComponent(CPFjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Telefone1PFjLabel)
                    .addComponent(Telefone1PFjFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Telefone2PFjLabel)
                    .addComponent(Telefone2PFjFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(CelularPFjFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(CelularPFjLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(EmailPFjLabel)
                    .addComponent(EmailPFjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(EndereçoPFjLabel)
                    .addComponent(EndereçoPFjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PFjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CidadePFjLabel)
                    .addComponent(CidadePFjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(UFPFjLabel)
                    .addComponent(UFPFjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(62, Short.MAX_VALUE))
        );

        cardPanel.add(PFjPanel, "pfcard");

        PJjPanel.setBackground(new java.awt.Color(199, 204, 213));
        PJjPanel.setPreferredSize(new java.awt.Dimension(500, 220));

        NomePJjLabel.setText("Nome:");

        NomePJjTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NomePJjTextFieldActionPerformed(evt);
            }
        });

        CNPJjLabel.setText("CNPJ:");

        CNPJjFormattedTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CNPJjFormattedTextFieldActionPerformed(evt);
            }
        });

        RazãoSocialjLabel.setText("Razão Soc.:");

        InscriçãoEstadualjLabel.setText("Insc. Est.:");

        InscriçãoMunicipaljLabel.setText("Insc. Munc.:");

        Telefone1PJjLabel.setText("Tel 1:");

        try {
            Telefone1PJjFormattedTextField5.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##) ####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        ResponsávelTelefone2PJjLabel.setText("Responsável:");

        Telefone2PJjLabel.setText("Tel 2:");

        try {
            Telefone2PJjFormattedTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##) ####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        ResponsávelTelefone1PJjLabel.setText("Responsável:");

        EmailPJjLabel.setText("Email:");

        EndereçoPJjLabel.setText("Endereço:");

        CidadePJjLabel.setText("Cidade:");

        CidadePJjTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CidadePJjTextFieldActionPerformed(evt);
            }
        });

        UFPJjLabel.setText("UF:");

        UFPJjComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "SP", "RJ", "MG", "PR", "SC" }));

        javax.swing.GroupLayout PJjPanelLayout = new javax.swing.GroupLayout(PJjPanel);
        PJjPanel.setLayout(PJjPanelLayout);
        PJjPanelLayout.setHorizontalGroup(
            PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PJjPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PJjPanelLayout.createSequentialGroup()
                        .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(CNPJjLabel)
                            .addComponent(NomePJjLabel)
                            .addComponent(InscriçãoEstadualjLabel)
                            .addComponent(Telefone1PJjLabel)
                            .addComponent(Telefone2PJjLabel))
                        .addGap(14, 14, 14)
                        .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PJjPanelLayout.createSequentialGroup()
                                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(PJjPanelLayout.createSequentialGroup()
                                        .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(EmailPJjTextField, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(Telefone2PJjFormattedTextField, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(Telefone1PJjFormattedTextField5, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(InscriçãoEstadualjTextField, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(CNPJjFormattedTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(ResponsávelTelefone1PJjLabel)
                                            .addComponent(InscriçãoMunicipaljLabel)
                                            .addComponent(RazãoSocialjLabel)
                                            .addComponent(EndereçoPJjLabel)
                                            .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(UFPJjLabel)
                                                .addComponent(ResponsávelTelefone2PJjLabel))))
                                    .addComponent(CidadePJjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(UFPJjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(InscriçãoMunicipaljTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                                        .addComponent(ResponsávelTelefone1PJjTextField10, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                                        .addComponent(ResponsávelTelefone1PJjTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                                        .addComponent(RazãoSocialjTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)
                                        .addComponent(EndereçoPJjTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE))))
                            .addComponent(NomePJjTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)))
                    .addComponent(EmailPJjLabel)
                    .addComponent(CidadePJjLabel))
                .addContainerGap(76, Short.MAX_VALUE))
        );
        PJjPanelLayout.setVerticalGroup(
            PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PJjPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(NomePJjLabel)
                    .addComponent(NomePJjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CNPJjLabel)
                    .addComponent(CNPJjFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(RazãoSocialjLabel)
                    .addComponent(RazãoSocialjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(InscriçãoEstadualjLabel)
                    .addComponent(InscriçãoEstadualjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(InscriçãoMunicipaljLabel)
                    .addComponent(InscriçãoMunicipaljTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Telefone1PJjLabel)
                    .addComponent(Telefone1PJjFormattedTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ResponsávelTelefone1PJjLabel)
                    .addComponent(ResponsávelTelefone1PJjTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Telefone2PJjLabel)
                    .addComponent(Telefone2PJjFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ResponsávelTelefone2PJjLabel)
                    .addComponent(ResponsávelTelefone1PJjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(EmailPJjLabel)
                    .addComponent(EmailPJjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(EndereçoPJjLabel)
                    .addComponent(EndereçoPJjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PJjPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CidadePJjLabel)
                    .addComponent(CidadePJjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(UFPJjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(UFPJjLabel))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        cardPanel.add(PJjPanel, "pjcard");

        jButton1.setBackground(new java.awt.Color(209, 209, 230));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/images/botao_limpar_24x24.png"))); // NOI18N
        jButton1.setText("Limpar");
        jButton1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setBackground(new java.awt.Color(209, 209, 230));
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/images/botao_adiciona_24x24.png"))); // NOI18N
        jButton2.setText("Cadastrar");
        jButton2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(PFjRadioButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(PJjRadioButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 390, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                        .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE))
                    .addComponent(cardPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 553, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(PFjRadioButton)
                    .addComponent(PJjRadioButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cardPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton2)
                    .addComponent(jButton1))
                .addContainerGap(29, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void NomePFjTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NomePFjTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_NomePFjTextFieldActionPerformed

    private void NomePJjTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NomePJjTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_NomePJjTextFieldActionPerformed

    private void PFjRadioButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_PFjRadioButtonKeyPressed
     
}//GEN-LAST:event_PFjRadioButtonKeyPressed

    private void PJjRadioButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_PJjRadioButtonKeyPressed

}//GEN-LAST:event_PJjRadioButtonKeyPressed

    private void PFjRadioButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PFjRadioButtonMouseClicked
        PJjPanel.setVisible(false);
        PFjPanel.setVisible(true);
}//GEN-LAST:event_PFjRadioButtonMouseClicked

    private void PJjRadioButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PJjRadioButtonMouseClicked
        PFjPanel.setVisible(false);
        PJjPanel.setVisible(true);
}//GEN-LAST:event_PJjRadioButtonMouseClicked

    private void CelularPFjFormattedTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CelularPFjFormattedTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_CelularPFjFormattedTextFieldActionPerformed

    private void CNPJjFormattedTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CNPJjFormattedTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_CNPJjFormattedTextFieldActionPerformed

    private void CidadePJjTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CidadePJjTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_CidadePJjTextFieldActionPerformed

    private void PJjRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PJjRadioButtonActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_PJjRadioButtonActionPerformed

    private void UFPFjComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_UFPFjComboBoxActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_UFPFjComboBoxActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton2ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JFormattedTextField CNPJjFormattedTextField;
    private javax.swing.JLabel CNPJjLabel;
    private javax.swing.JLabel CPFjLabel;
    private javax.swing.JTextField CPFjTextField;
    private javax.swing.JFormattedTextField CelularPFjFormattedTextField;
    private javax.swing.JLabel CelularPFjLabel;
    private javax.swing.JLabel CidadePFjLabel;
    private javax.swing.JTextField CidadePFjTextField;
    private javax.swing.JLabel CidadePJjLabel;
    private javax.swing.JTextField CidadePJjTextField;
    private javax.swing.JLabel EmailPFjLabel;
    private javax.swing.JTextField EmailPFjTextField;
    private javax.swing.JLabel EmailPJjLabel;
    private javax.swing.JTextField EmailPJjTextField;
    private javax.swing.JLabel EndereçoPFjLabel;
    private javax.swing.JTextField EndereçoPFjTextField;
    private javax.swing.JLabel EndereçoPJjLabel;
    private javax.swing.JTextField EndereçoPJjTextField;
    private javax.swing.JLabel InscriçãoEstadualjLabel;
    private javax.swing.JTextField InscriçãoEstadualjTextField;
    private javax.swing.JLabel InscriçãoMunicipaljLabel;
    private javax.swing.JTextField InscriçãoMunicipaljTextField;
    private javax.swing.JLabel NomePFjLabel;
    private javax.swing.JTextField NomePFjTextField;
    private javax.swing.JLabel NomePJjLabel;
    private javax.swing.JTextField NomePJjTextField;
    private javax.swing.JPanel PFjPanel;
    private javax.swing.JRadioButton PFjRadioButton;
    private javax.swing.JPanel PJjPanel;
    private javax.swing.JRadioButton PJjRadioButton;
    private javax.swing.JLabel RazãoSocialjLabel;
    private javax.swing.JTextField RazãoSocialjTextField;
    private javax.swing.JLabel ResponsávelTelefone1PJjLabel;
    private javax.swing.JTextField ResponsávelTelefone1PJjTextField;
    private javax.swing.JTextField ResponsávelTelefone1PJjTextField10;
    private javax.swing.JLabel ResponsávelTelefone2PJjLabel;
    private javax.swing.JFormattedTextField Telefone1PFjFormattedTextField;
    private javax.swing.JLabel Telefone1PFjLabel;
    private javax.swing.JFormattedTextField Telefone1PJjFormattedTextField5;
    private javax.swing.JLabel Telefone1PJjLabel;
    private javax.swing.JFormattedTextField Telefone2PFjFormattedTextField;
    private javax.swing.JLabel Telefone2PFjLabel;
    private javax.swing.JFormattedTextField Telefone2PJjFormattedTextField;
    private javax.swing.JLabel Telefone2PJjLabel;
    private javax.swing.ButtonGroup TipoClientebuttonGroup;
    private javax.swing.JComboBox UFPFjComboBox;
    private javax.swing.JLabel UFPFjLabel;
    private javax.swing.JComboBox UFPJjComboBox;
    private javax.swing.JLabel UFPJjLabel;
    private javax.swing.JPanel cardPanel;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    // End of variables declaration//GEN-END:variables

}
